<div class="indexLinks"><a href="<?php echo $this->url(array('module'=>'admin','controller'=>'news','action'=>'add'),'default',true)?>">Add</a></div>
<?php foreach ($this->entries as $entry):?>
<div class="article" id="<?php echo $this->escape($entry->id)?>">
	<div class="title"><?php echo $this->escape(utf8_encode($entry->title))?></div>
	<div class="message"><?php echo $this->escape(utf8_encode($entry->text)) ?></div>
	<div class="links"><div class="user"><?php echo ucfirst($this->escape($entry->pseudo)).' - '.$this->escape($entry->date);?></div>
		<?php echo '<a class="newsEdit" href="'.
			$this->url(array(
				'module'		=> 'admin',
				'controller'	=> 'news',
				'action'		=> 'edit',
				'news'			=> $entry->id
			),'default',true).'">&nbsp;</a> <a class="newsDelete" href="'.
			$this->url(array(
				'module'		=> 'admin',
				'controller'	=> 'news',
				'action'		=> 'delete',
				'news'			=> $entry->id
			),'default',true).'">&nbsp;</a>'?>
	</div>
</div>
<?php endforeach ?>
<?php echo $this->paginationControl($this->entries, 'Elastic', 'pagination_controll.phtml')?>